import React from 'react';
import Son from './son.jsx';
export const { Provider, Consumer } = React.createContext();
class App extends React.Component {
    render () {
        let message = {
            name: '张三',
            age: 20
        };
        return (
            <Provider value={message}>
                <Son />
            </Provider>
        );
    }
}

export default App;
